package com.clever.bean.shopping;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import java.util.Date;

/**
 * 会话表
 *
 * @Author xixi
 * @Date 2024-04-09 09:09:33
 */
public class Conversation implements Serializable {

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 发送者
     */
    @NotBlank(message = "发送者不能为空")
    private String senderId;
    /**
     * 接收者
     */
    @NotBlank(message = "接收者不能为空")
    private String receiverId;
    /**
     * 发起会话商品
     */
    @NotBlank(message = "发起会话商品不能为空")
    private String productId;
    /**
     * 发起会话时间
     */
    @NotNull(message = "发起会话时间不能为空")
    private Date sessionTime;
    /**
     * 创建时间
     */
    private Date createdAt;


    /**
     * id
     */
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    /**
     * 发送者
     */
    public String getSenderId() {
        return senderId;
    }

    public void setSenderId(String senderId) {
        this.senderId = senderId;
    }

    /**
     * 接收者
     */
    public String getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }

    /**
     * 发起会话商品
     */
    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    /**
     * 发起会话时间
     */
    public Date getSessionTime() {
        return sessionTime;
    }

    public void setSessionTime(Date sessionTime) {
        this.sessionTime = sessionTime;
    }

    /**
     * 创建时间
     */
    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }
}